home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm4_2_1
- Caption = "4-2-1"
- ClientHeight = 1440
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2415
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1440
- ScaleWidth = 2415
- Begin VB.PictureBox picResults
- Height = 375
- Left = 360
- ScaleHeight = 315
- ScaleWidth = 1635
- TabIndex = 1
- Top = 840
- Width = 1695
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Numbers"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 120
- Width = 1695
- End
- Attribute VB_Name = "frm4_2_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- Dim amt As Single
- 'Illustrate effect of value of parameter on value of argument
- picResults.Cls
- amt = 2
- picResults.Print amt;
- Call Triple(amt)
- picResults.Print amt
- End Sub
- Private Sub Triple(num As Single)
- 'Triple a number
- picResults.Print num;
- num = 3 * num
- picResults.Print num;
- End Sub
-